import request from '@/utils/request'

// 查询列表
export function listExamine(query) {
  return request({
    url: '/credit/examine/list',
    method: 'post',
    data
  })
}

// 查询列表
export function listExamineByOrderId(query) {
  return request({
    url: '/credit/examine/listByOrderId',
    method: 'post',
    data:query
  })
}

// 查询详细
export function getExamine(examineId) {
  return request({
    url: '/credit/examine/' + examineId,
    method: 'get'
  })
}



// 新增
export function addExamine(data) {
  return request({
    url: '/credit/examine/add',
    method: 'post',
    data: data
  })
}

// 修改
export function updateExamine(data) {
  return request({
    url: '/credit/examine',
    method: 'put',
    data: data
  })
}

// 删除
export function delExamine(examineId) {
  return request({
    url: '/credit/examine/' + examineId,
    method: 'delete'
  })
}